package com.nobug.controller.dashboard;

import com.nobug.bean.BaseRespVo;
import com.nobug.bean.dashboard.DashBoardDataBean;
import com.nobug.service.dashboard.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DashboardController {
    @Autowired
    DashBoardService service;
    @RequestMapping("admin/dashboard")
    public BaseRespVo dashboard() {
        DashBoardDataBean dashBoardDataBean = service.dashBoard();
        return BaseRespVo.ok(dashBoardDataBean);
    }
}
